package com.feicheng.persistence.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author cailongyang
 * @since 2021-12-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class CutDepositRecord implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "cut_id", type = IdType.AUTO)
    private Integer cutId;

    private Integer amount;

    private String reason;

    private Integer clientId;

    /**
     * 0: 扣押金；1：取消扣押金；
     */
    private Boolean ioFlg;

    private Boolean delFlg;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss", iso = DateTimeFormat.ISO.DATE_TIME)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime ct;

    private Integer uu;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss", iso = DateTimeFormat.ISO.DATE_TIME)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime ut;


}
